package com.fth.learn.chapter08.game;

import java.util.Scanner;

/**
 * 测试类
 * YiMi
 *
 * @author YiMi
 * @version 1.0
 * @date 2023/7/24 10:52
 */

public class text {
    public static void main(String[] args) {
        Hero h1 = new Hero();
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入英雄名字");
        h1.setName(scanner.nextLine()) ;
        System.out.println("英雄名字是"+h1.getName()+"，等级是"+h1.getLv()+"，血量是"+h1.getBlood());


        Scanner scanner1 = new Scanner(System.in);
        System.out.println("请输入1,2");
        int num = scanner1.nextInt();
        Hero h2 = new Hero(num);




    }
}
